#ifndef CURRENTDEVICEINFO_H
#define CURRENTDEVICEINFO_H
#include <QPair>
#include <QList>
#include <QAbstractItemModel>
#include <QAbstractItemView>

struct formatInfo
{
    uint format;
    QString formatString;
    uint width;
    uint height;
    uint fps;
};


class CurrentDeviceInfo
{
public:
    CurrentDeviceInfo();
    static QList<QPair<uint,uint>> available_size;
    static uint available_format;
    static QPair<uint,uint> current_size;
    static QString current_device_name;
    static QList<QString> current_device_list;
    static void sort_resolution();

    //static formatInfo getFormatInfo(v4l2_frmivalenum frmInfo);
    //static QString getFormatString(uint format);
};

#endif // CURRENTDEVICEINFO_H
